<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="../../common/tagInclude.jsp" %>
<%@include file="../../common/headerInclude.jsp" %>
<title>图片水印处理</title>
<script type="text/javascript">
	$(function() {
		$("#jvForm").validate();
	});
</script>
<script type="text/javascript" src="${basePath}res/common/js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<div class="body-box">
	<div class="rhead">
		<div class="rpos">当前位置: 首页 - 系统 - 图片水印</div>
		<div class="clear"></div>
	</div>
	<form method="post" action="${basePath}super/sysSetUp/watermark.do" id="jvForm"  enctype="multipart/form-data">
		<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
			<tbody>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>水印开关:</td>
				<td width="85%" class="pn-fcontent">
					<select id="switchStatus" name="switchStatus" class="required">
						<option value="0" <c:if test="${wm.switchStatus == 0 }">selected</c:if>>关闭</option>
						<option value="1" <c:if test="${wm.switchStatus == 1 }">selected</c:if>>开启</option>
					</select>&nbsp;&nbsp;如果选择为开,所有手动发布的内容图片均被处理。
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>语种:</td>
				<td width="85%" class="pn-fcontent">
					<select id="languageId" name="languageId" class="required">
						<option value="">请选择来源</option>
						<option value="1" <c:if test="${wm.lg == 1}">selected</c:if> >中文</option>
						<option value="2" <c:if test="${wm.lg == 2}">selected</c:if> >英文</option>
					</select>
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>选择字体:</td>
				<td width="85%" class="pn-fcontent">
					<select id="font" name="font" class="required">
					<c:forEach var="f" items="${font}">
						<option value="${f}" <c:if test="${wm.font == f}">selected</c:if>>${f}</option>
					</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>字体大小:</td>
				<td width="85%" class="pn-fcontent">
					<input type="text" maxlength="100" name="fontsize" id="fontsize" class="required" size="10" value="${wm.fontSize}">&nbsp;&nbsp;大于0的数字
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>字体样式:</td>
				<td width="85%" class="pn-fcontent">
					<select id="fontstyle" name="fontstyle" class="required">
					<option value="0" <c:if test="${wm.fontStyle == 0}">selected</c:if>>普通</option>
					<option value="1" <c:if test="${wm.fontStyle == 1}">selected</c:if>>粗体</option>
					<option value="2" <c:if test="${wm.fontStyle == 2}">selected</c:if>>斜体</option>
					<option value="3" <c:if test="${wm.fontStyle == 3}">selected</c:if>>粗体&斜体</option>
					</select>
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>水印位置:</td>
				<td width="85%" class="pn-fcontent">
					<select id="toward" name="toward" class="required">
					<option value="0" <c:if test="${wm.toward == 0}">selected</c:if>>右下</option>
					<option value="1" <c:if test="${wm.toward == 1}">selected</c:if>>左下</option>
					<option value="2" <c:if test="${wm.toward == 2}">selected</c:if>>右上</option>
					<option value="3" <c:if test="${wm.toward == 3}">selected</c:if>>左上</option>
					<option value="4" <c:if test="${wm.toward == 4}">selected</c:if>>正中</option>
					<option value="5" <c:if test="${wm.toward == 5}">selected</c:if>>左上->右下</option>
					<option value="6" <c:if test="${wm.toward == 6}">selected</c:if>>左下->右上</option>
					</select>
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>水印颜色:</td>
				<td width="85%" class="pn-fcontent">
					<select id="fontcolor" name="fontcolor" class="required">
						<option value="0" <c:if test="${wm.fontColor == 0}">selected</c:if>>蓝色</option>
						<option value="1" <c:if test="${wm.fontColor == 1}">selected</c:if>>青色</option>
						<option value="2" <c:if test="${wm.fontColor == 2}">selected</c:if>>绿色</option>
						<option value="3" <c:if test="${wm.fontColor == 3}">selected</c:if>>红色</option>
						<option value="4" <c:if test="${wm.fontColor == 4}">selected</c:if>>灰色</option>
						<option value="5" <c:if test="${wm.fontColor == 5}">selected</c:if>>浅灰色</option>
						<option value="6" <c:if test="${wm.fontColor == 6}">selected</c:if>>洋红色</option>
						<option value="7" <c:if test="${wm.fontColor == 7}">selected</c:if>>桔黄色</option>
						<option value="8" <c:if test="${wm.fontColor == 8}">selected</c:if>>粉红色</option>
						<option value="9" <c:if test="${wm.fontColor == 9}">selected</c:if>>黄色</option>
						<option value="10" <c:if test="${wm.fontColor == 10}">selected</c:if>>黑色</option>
						<option value="11" <c:if test="${wm.fontColor == 11}">selected</c:if>>白色</option>
					</select>
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>缩放大小:</td>
				<td width="85%" class="pn-fcontent">
					<select id="scale" name="scale" class="required">
						<option value="0" <c:if test="${wm.scale == 0}">selected</c:if>>不缩放</option>
						<option value="1" <c:if test="${wm.scale == 1}">selected</c:if>>25%</option>
						<option value="2" <c:if test="${wm.scale == 2}">selected</c:if>>50%</option>
						<option value="3" <c:if test="${wm.scale == 3}">selected</c:if>>75%</option>
						<option value="4" <c:if test="${wm.scale == 4}">selected</c:if>>125%</option>
						<option value="5" <c:if test="${wm.scale == 5}">selected</c:if>>150%</option>
						<option value="6" <c:if test="${wm.scale == 6}">selected</c:if>>175%</option>
						<option value="7" <c:if test="${wm.scale == 7}">selected</c:if>>200%</option>
					</select>
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>透明度:</td>
				<td width="85%" class="pn-fcontent">
					<select id="alpha" name="alpha" class="required">
						<option value="0.5" <c:if test="${wm.alpha == 0.5}">selected</c:if>>0.5</option>
						<option value="0.0" <c:if test="${wm.alpha == 0.0}">selected</c:if>>完全透明</option>
						<option value="0.1" <c:if test="${wm.alpha == 0.1}">selected</c:if>>0.1</option>
						<option value="0.2" <c:if test="${wm.alpha == 0.2}">selected</c:if>>0.2</option>
						<option value="0.3" <c:if test="${wm.alpha == 0.3}">selected</c:if>>0.3</option>
						<option value="0.4" <c:if test="${wm.alpha == 0.4}">selected</c:if>>0.4</option>
						<option value="0.6" <c:if test="${wm.alpha == 0.6}">selected</c:if>>0.6</option>
						<option value="0.7" <c:if test="${wm.alpha == 0.7}">selected</c:if>>0.7</option>
						<option value="0.8" <c:if test="${wm.alpha == 0.8}">selected</c:if>>0.8</option>
						<option value="0.9" <c:if test="${wm.alpha == 0.9}">selected</c:if>>0.9</option>
						<option value="1.0" <c:if test="${wm.alpha == 1.0}">selected</c:if>>完全不透明</option>
					</select>
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>水印文字:</td>
				<td width="85%" class="pn-fcontent">
					<input type="text" maxlength="100" name="mark" id="mark" class="required" size="50" value="${wm.mark}">
				</td>
			</tr>
			<tr>
				<td width="15%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>测试图片:</td>
				<td width="85%" class="pn-fcontent">
					<input type="file" maxlength="100" name="image" id="image" size="80" value="">
				</td>
			</tr>
			<tr>
				<td colspan="2" class="pn-fbutton">
					<input type="submit" value="保存预览"> &nbsp; <input type="reset" value="重&nbsp;&nbsp;&nbsp;&nbsp;置">
				</td>
			</tr>
			</tbody>
		</table>
	</form>
</div>
</body>
</html>